<form class="example-form">
    <h2 mat-dialog-title>{{title}}</h2>
    <mat-dialog-content>
        <mat-form-field class="example-full-width">
            <input matInput placeholder="任务内容">
        </mat-form-field>
        <mat-radio-group class="example-radio-group">
            <mat-radio-button *ngFor="let prioritie of priorities" [value]="prioritie.value">{{prioritie.label}}
            </mat-radio-button>
        </mat-radio-group>
        <div class="example-container">
            <mat-form-field color="accent" class="example-full-width">
                <mat-label>任务截至日期</mat-label>
                <input matInput [matDatepicker]="picker1">
                <mat-datepicker-toggle matSuffix [for]="picker1"></mat-datepicker-toggle>
                <mat-datepicker #picker1></mat-datepicker>
            </mat-form-field>

            <mat-form-field color="accent" class="example-full-width">
                <mat-label>提醒日期</mat-label>
                <input matInput [matDatepicker]="picker2">
                <mat-datepicker-toggle matSuffix [for]="picker2"></mat-datepicker-toggle>
                <mat-datepicker #picker2 color="primary"></mat-datepicker>
            </mat-form-field>
        </div>
    </mat-dialog-content>
    <mat-dialog-actions>
        <button type="button" mat-button mat-dialog-close>取消</button>

        <button type="button" mat-button color="primary" (click)="heandClick()">保存</button>
    </mat-dialog-actions>
</form>